package com.aimao.blog.dao;


import com.aimao.blog.pojo.Sort;
import com.aimao.blog.vo.SortAndArticleCountVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SortMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Sort record);

    int insertSelective(Sort record);

    Sort selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Sort record);

    int updateByPrimaryKey(Sort record);

    List<SortAndArticleCountVo> selectAll();

    List<SortAndArticleCountVo> selectAllByKeyWord(String keyWord);
}